package morning.cat;

import morning.cat.config.ScanConfig;
import morning.cat.service.UserService;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2020/1/6 11:04 AM
 * {https://blog.csdn.net/java_lyvee/article/details/101793774}
 */
public class Starter3 {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ScanConfig.class);

		System.out.println(applicationContext.getBean(UserService.class));

		FactoryBean<UserService> factoryBean;
	}
}
